            <div class="message">${flash.message}</div>
            

	<g:form url="[action:'saveContent']" method="post" >
	
		  <input type="hidden" id="id" name="id" value="${fieldValue(bean:contentHolder,field:'id')}"/>
		  <input type="hidden" id="contentDefId" name="contentDefId" value="${fieldValue(bean:contentHolder,field:'contentDefId')}"/>
		  		  
		  
	<table>
		<tr><td>Name</td>
		    <td>  <input type="text" id="name" name="name" value="${fieldValue(bean:contentHolder,field:'name')}"/>
		      
	
		</td>
		</tr>



		

		
		

		
				</table>
			<input value="save content" type="submit" />
		</g:form>
		
		
<h2>Content Versions </h2>

<a href="<g:createLink controller="contentVersion" action="createContentVersion" id="${fieldValue(bean:contentHolder,field:'id')}"/>">Create contentVersion</a>



<table>
                    <g:each in="${contentHolder?.contentVersionHolders}" status="i" var="contentVersionHolderInstance">

                       
              	  <g:each in="${contentVersionHolderInstance.contentVersionHolder}"  var="cvh">

                   		<tr><td>
                   		${cvh.name}</td>
 
                   		<td>
                   		${cvh.description}</td>
                   		
                   		
                   				<td>
                   				<a href="<g:createLink controller="contentVersion" action="editContentVersion" id="${cvh.id}" />">edit</a>
                   				</td>
                   				
                   				
                   		</tr>    
                  
       
                   		
                   		
                   	
                   		
                   		
                   		
                   		  </g:each>
                   		
                   		     
          
                    </g:each>
                    		
                    	</table>	
